<?php
function smarty_modifier_wtime($a)
{
        $year=intval(substr($a,0,4));
        $month=intval(substr($a,4,2));
        $day=intval(substr($a,6,2));
        $h=intval(substr($a,9,2));
        $m=intval(substr($a,11,2));
        $s=intval(substr($a,13,2));
        $ts=mktime($h+7,$m,$s,$month,$day,$year);
        return date("m-d H:i",$ts);
}

